package com.company.createtype.singleton;

public class SingletonPattern {
    //

    private volatile static SingletonPattern INSTANCE;

    private SingletonPattern() {
    }

    //    public static SingletonPattern getInstance(){
//        if (INSTANCE == null) {
//            INSTANCE = new SingletonPattern();
//        }
//        return INSTANCE;
//    }


//    static {
//        INSTANCE = new SingletonPattern();
//    }
//    public static SingletonPattern getInstance(){
//        return INSTANCE;
//    }

//    public static SingletonPattern getInstance(){
//        if (INSTANCE == null) {
//            synchronized (SingletonPattern.class){
//                if (INSTANCE == null) {
//                    INSTANCE=new SingletonPattern();
//                }
//            }
//        }
//        return INSTANCE;
//    }

    public static class SingleHolder{

    }



}
